home *** CD-ROM | disk | FTP | other *** search
/ Resource Library: Multimedia / Resource Library: Multimedia.iso / sgml / unix / sgmlh / envcb.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-07-03  |  1.3 KB  |  21 lines

  1. /******************************************************************************/
  2. /* ENVCB.H: Control blocks used by text processor environment.
  3. */
  4. /******************************************************************************/
  5. typedef int HANDLE;           /* Low-level I/O: handle is integer. */
  6. /******************************************************************************/
  7. struct iofcb {                /* I/O file control block. */
  8.      HANDLE fcbfd;            /* DOS file handle. */
  9.      long fcboff;             /* Offset in file of current read block. */
  10.      char *fcbxid;            /* External ID string. */
  11.      char *fcbnext;           /* Next file in fcbxid (NULL if no more). */
  12.      char fcbfile[FILESPEC+2];/* Full system fileid (length + EOS). */
  13.      int fcbcatsw;            /* 1=catenate next file on next read; 0=no. */
  14.      int fcbRS;               /* 1=prefix RS to first file of entity; 0=no. */
  15.      int fcbRE;               /* 1=strip RE from last file of entity; 0=no. */
  16.      int fcbfirst;            /* 1=next read will be the first; 0=no. */
  17. };
  18. #define IPBFCB ((struct iofcb *)io->ipbn)      /* IPBFILE: Ptr to SGMLIO fcb. */
  19. #define FLID (((struct iofcb *)SCBFCB)->fcbfile)/* Actual fileid of file. */
  20. /******************************************************************************/
  21.